<template>
	<view class="set">
		<view class="one-set" @click="xieyi">
			<view>用户协议</view>
		</view>
		<view class="one-set" @click="privacypolicy">
			<view>隐私政策</view>
		</view>
		<view class="one-set" @click="toLoginOut">
			<view>退出登录</view>
		</view>
		<view class="one-set" @click="logOff">
			<view>注销账号</view>
		</view>
		<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
			<view class=""
				style="background-color: #fff;height: 300rpx;width: 500rpx;display: flex;flex-direction: column;align-items: center;padding-top: 50rpx;border-radius: 10rpx;">
				<view class="" style="font-size: 36rpx;font-weight: 600;"> 注销</view>
				<view class="" style="margin: 40rpx 0;display: flex;align-items: center;">
					<view class="">是否确认注销此账户？</view>
				</view>
				<view class="" style="display: flex;">
					<button style="margin-left: 20rpx;height: 66rpx;line-height: 66rpx;padding: 0 30rpx;"
						@click="cancel">取消</button>
					<button style="margin-left: 20rpx;height: 66rpx;line-height: 66rpx;padding: 0 30rpx;"
						@click="toLoginOut">确认</button>
				</view>
			</view>
		</uni-popup>
	</view>
</template>
<script>
	import {} from "../../request/api.js"
	export default {
		data() {
			return {
				calcel: false, //注销账号
				hide: ''
			};
		},
		onShow() {},
		methods: {
			cancel() {
				this.$refs.popup.close()
			},
			logOff() {
				this.$refs.popup.open()
			},
			disableStatuss() {
				disableStatus().then(res => {
					console.log(res, 'aa');
					this.hide = res.result
				})
			},
			memberc() {
				uni.navigateTo({
					url: '/pages/vip/withdrawal'
				})
			},
			briefintroduction() {
				uni.navigateTo({
					url: '/pages/set/briefintroduction'
				})
			},
			toLoginOut() {
				uni.removeStorageSync('userInfo');
				uni.removeStorageSync('token');
				uni.navigateTo({
					url: '/pages/index/logon'
				})
			},
			xieyi() {
				uni.navigateTo({
					url: '/pages/index/useragreement'
				})
			},
			privacypolicy() {
				uni.navigateTo({
					url: '/pages/index/privacypolicy'
				})
			}
		}
	}
</script>
<style lang="scss">
	.set {
		width: 710rpx;
		margin-left: auto;
		margin-right: auto;
		margin-top: 20rpx;

		.one-set {
			display: flex;
			justify-content: space-between;
			align-items: center;
			font-size: 30rpx;
			color: #232323;
			background-color: #fff;
			border-radius: 20rpx;
			margin-top: 20rpx;
			padding: 20rpx;
			border-bottom: 1px solid #eeeeee;
		}
	}
</style>